
package com.hlkj.pay.app.merchant.ext.impl.fuyou.dto;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/11/18 13:48
 */
@Data
public class FuYouRefundOrderResultDto extends FuYouPayResultCommonDto {

    /**
     * ins_cd : 08A9999999 mchnt_cd : 0002900F0370542 mchnt_order_no :
     * 2020120115294222446445 order_type : WECHAT random_str :
     * XNHAK3QC09N78X3PWJOZV26NA2ODLKX4 refund_id : 50100006672020120104376121338
     * refund_order_no : 2020120115362692413627_refund reserved_fy_settle_dt :
     * 20201201 reserved_fy_trace_no : 120186438962 reserved_refund_amt : 1
     * result_code : 000000 result_msg : SUCCESS sign :
     * TGgEe75W1hvMuvozZZ6JbW3hLBxRewHu5xO+iuAjyWfspUoVqzvSw74KMMD2v8NbwafFdG6vvH4Q6S8AiyPuvXtJMvYkg9XUov1ywjqVnhuCaWVcwHzEyCHQzxQhtJUIxEnO/Bw1Mlt1AxwyZWnlIGTDJJYljQxewMHgZHiN4+U=
     * term_id : 88888888 transaction_id : 4200000747202012013659872912
     */
    // 商户订单号, 商户系统内部的订单号
    private String mchnt_order_no;

    // 订单类型
    private String order_type;

    // 渠道退款流水号
    private String refund_id;

    // 商户退款单号
    private String refund_order_no;

    //富友交易日期
    private String reserved_fy_settle_dt;
    
    //富友系统内部追踪号
    private String reserved_fy_trace_no;

    // 退款金额
    private String reserved_refund_amt;
    
    //终端号
    private String term_id;
    
    //渠道订单号
    private String transaction_id;
    //优惠信息
    private String reserved_promotion_detail;
    //交易状态
    // SUCCESS—退款成功
    // PAYERROR--退款失败
    private String trans_stat;
    
    public static void main(String[] args) {
        String xml="%3C%3Fxml+version%3D%221.0%22+encoding%3D%22GBK%22+standalone%3D%22yes%22%3F%3E%3Cxml%3E%3Cins_cd%3E08A9999999%3C%2Fins_cd%3E%3Cmchnt_cd%3E0002900F0370542%3C%2Fmchnt_cd%3E%3Cmchnt_order_no%3ED20241119151244748254408%3C%2Fmchnt_order_no%3E%3Corder_type%3EWECHAT%3C%2Forder_type%3E%3Crandom_str%3ELFCS7APYR6D8RAYQ47XXGSJ5FN3AFBHI%3C%2Frandom_str%3E%3Crefund_id%3E50102701462024111909672196485%3C%2Frefund_id%3E%3Crefund_order_no%3ET20241119154428447889998%3C%2Frefund_order_no%3E%3Creserved_fy_settle_dt%3E20241119%3C%2Freserved_fy_settle_dt%3E%3Creserved_fy_trace_no%3E110241912981%3C%2Freserved_fy_trace_no%3E%3Creserved_refund_amt%3E1%3C%2Freserved_refund_amt%3E%3Creserved_remain_refund%3E0%3C%2Freserved_remain_refund%3E%3Cresult_code%3E000000%3C%2Fresult_code%3E%3Cresult_msg%3ESUCCESS%3C%2Fresult_msg%3E%3Csign%3EWqjomSZ5XDYxI7Xtyth%2B610oo5DnTexQVAdhKqxqQo4AUcUPZM0EGMPI0v35H0EDZZOqLWGOUv96eJ6Ym%2FLBvF591Bijfbl28JjpvHtzF3aDz22v6sr1T5NWy6UclpP%2FZNa9b9PL4rUoNZvXDMZ5JkCBHy4GEqtiMvQ8w%2FJV944%3D%3C%2Fsign%3E%3Cterm_id%3E88888888%3C%2Fterm_id%3E%3Ctrans_stat%3ESUCCESS%3C%2Ftrans_stat%3E%3Ctransaction_id%3E4200002504202411198069342966%3C%2Ftransaction_id%3E%3C%2Fxml%3E";
        // FuYouRefundOrderResultDto fuYouPayOrderResultDto = SignUtils.xmlToObject(xml, FuYouRefundOrderResultDto.class);
        // System.out.println(fuYouPayOrderResultDto);
    }
}
